//
//  TouchIDManager.h
//  touch
//
//  Created by guomianxiang on 17/3/10.
//  Copyright © 2017年 guomianxiang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <LocalAuthentication/LocalAuthentication.h>
@interface TouchIDManager : NSObject

@property (assign, nonatomic,readonly) BOOL canUseTouchID;


+ (TouchIDManager * _Nonnull)sharedTouchIDManager;

- (BOOL)canUseTouchIDWithError:(NSError * _Nullable __autoreleasing *_Nullable)error;

- (void)touchIDLoginSuccessHandler:(void(^_Nullable)())successHandler failHandler:(void(^_Nullable)(NSError * _Nullable error))failHandler;
- (void)validateTouchIDWithLocalizedReason:(NSString *_Nullable)reason localizedFallbackTitle:(NSString *_Nullable)fallBackTitle successHandler:(void(^_Nullable)())successHandler failHandler:(void(^_Nullable)(NSError * _Nullable error))failHandler;

- (void)touchIDWithLocalizedReason:(NSString *_Nullable)reason localizedFallbackTitle:(NSString *_Nullable)title reply:(void(^_Nullable)(BOOL success, NSError * _Nullable error))reply;

@end
